//
//  MainFrameViewController.h
//  Moonlight
//
//  Created by Diego Waxemberg on 1/17/14.
//  Copyright (c) 2014 Moonlight Stream. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DiscoveryManager.h"
#import "PairManager.h"
#import "StreamConfiguration.h"
#import "UIComputerView.h"
#import "UIAppView.h"
#import "AppAssetManager.h"


/// 为了减少逻辑性的修改，直接把这个类当做工具来用
@protocol MainFrameViewControllerDelegate <NSObject>

-(void)pairFailed:(NSString *)message;
-(void)readyPin:(NSString *)pin;

@end

@interface MainFrameViewController : UIViewController <DiscoveryCallback, PairCallback, HostCallback, AppCallback, AppAssetCallback, NSURLConnectionDelegate>

@property(nonatomic, strong) UIViewController *superController;

@property(nonatomic, weak) id<MainFrameViewControllerDelegate>deleagte;

//MARK: - 开机
/// 开机
/// - Parameters:
///   - ipAddress: ipAddress description
///   - vnName: 设备名字
///   - isSunshine: 是否是Sunshine
///   - completion: completion description
- (void)powerOn:(NSString *)ipAddress vnName:(NSString *)vnName isSunshine:(BOOL)isSunshine completion:(void (^)(BOOL success, NSString *msg))completion;

//MARK: - 开始启动对应的电脑
- (void)startPC;

- (void)viewDidDisappear:(BOOL)animated;

@end
